package com.kidedu.action;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionContext;

public class KBasePathAction {

	private String A_id;
	public String execute()
	{
		ActionContext.getContext().getSession().put("ctx", ServletActionContext.getServletContext().getContextPath());
		  if(ActionContext.getContext().getSession().get("load")==null)
			   ActionContext.getContext().getSession().put("load","no");
		  if(ActionContext.getContext().getSession().get("username")==null)
			   ActionContext.getContext().getSession().put("username","null");
		  if(A_id!=null)
		     ActionContext.getContext().getSession().put("aid",A_id);
		  return Action.SUCCESS;
	}
	public String getA_id() {
		return A_id;
	}
	public void setA_id(String a_id) {
		A_id = a_id;
	}
	
	
}
